package ltd.newbee.cloud.web;

import ltd.newbee.cloud.service.HelloServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: tangyushan
 * @Date: 2024/5/17 - 05 - 17 - 12:16
 * @Description: ltd.newbee.cloud.web
 * @version: 1.0
 */
@RestController
public class HelloServiceController {
    @Autowired
    private HelloServiceImpl helloService;

    @GetMapping("/hello")
    public String hello() {
        return "hello from " + helloService.getName();
    }
}
